package com.otupia.blog.model;

public class Blog
{
	long id;
	String title;
	String content;
	long writer_id;
	
	public long getWriter_id()
	{
		return writer_id;
	}
	public void setWriter_id(long writerId)
	{
		writer_id = writerId;
	}
	public String getTitle()
	{
		return title;
	}
	public void setTitle(String title)
	{
		this.title = title;
	}
	public String getContent()
	{
		return content;
	}
	public void setContent(String content)
	{
		this.content = content;
	}
	
	public long getId()
	{
		return id;
	}
	public void setId(long id)
	{
		this.id = id;
	}

	
	public String toString()
	{
		StringBuffer sb = new StringBuffer();
		sb.append("article:\n");
		sb.append("title:" + this.getTitle() + "\n");
		sb.append(this.getContent() + "\n");
		
		return sb.toString();
		
	}
}
